jQuery(document).ready(function($) {
	
	$('#validate_usgs').click(function() {
		var river_number = $("#river_usgs_num").val();
		var ccReg = /^\d{8}$/;
	    if(!ccReg.test(river_number)) {
	        $("#is_usgs_validated").text('Not Valid, please enter only an 8 digit USGS id number');
	    }
		else {
			$("#is_usgs_validated").text('Valid, update the page to generate shortcodes.');
		}
	});
	
});
